package com.zzw.bridge.common.exception;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 错误编码
 *
 * @author XiaoJie
 * @date 2025/5/16 11:34
 */
@Getter
@AllArgsConstructor
public enum ErrorCode {
  UNAUTHORIZED(401, "还未授权，不能访问"),
  FORBIDDEN(403, "没有权限，禁止访问"),
  INPUT_ERROR(100, "信息输入错误"),
  INTERNAL_SERVER_ERROR(500, "服务器异常，请稍后再试"),
  ACCOUNT_PASSWORD_ERROR(1001, "账号或密码错误"),
  JSON_CONVERT_ERROR(5001, "JSON转换异常"),
  FILE_HANDLE_ERROR(5002, "文件处理异常"),
  TEST_ERROR(303, "测试");

  private final int code;
  private final String message;
}
